import dt from '@dt/dt'
import Opt from '@/components/dt/info/Opt.js'

class DetailOpt extends Opt {

  constructor() {
    super()
    this.build()
  }

  build() {
    this.createAll()
    this.opts.push(...this.all)
  }

  createAll() {
    this.all = [{
        title: '工号',
        key: 'workNo',
        text: {}
      },
      {
        title: '姓名',
        key: 'userName',
        text: {}
      },
      {
        title: '职位',
        key: 'postName',
        text: {}
      },
      {
        title: '当前状态',
        key: 'jobStatusStr',
        text: {}
      },
      {
        title: '入职日期',
        key: 'joinTime',
        text: {
          type: 'date'
        }
      },
      {
        title: '离职日期',
        key: 'leaveTime',
        text: {
          type: 'date'
        }
      },
      {
        title: '年度已结奖金',
        key: 'yearSettlementAmount',
        text: {
          type: 'number',
          unit: '元'
        }
      },
      {
        title: '年底应发奖金',
        key: 'shouldBonusAmount',
        text: {
          type: 'number',
          unit: '元'
        }
      }
    ]
  }
}

export default DetailOpt
